//
//  SelectItem.m
//  SelectControl
//
//  Created by Summer on 15/12/23.
//  Copyright © 2015年 Summer. All rights reserved.
//

#import "SelectItem.h"

@implementation SelectItem


/** 切换选中状态 **/
- (void)setItemSelected:(BOOL)itemSelected{
    _itemSelected = itemSelected;
    
    if (itemSelected) {
        [self select];
    }
    else{
        [self deSelect];
    }
}

/** 选中 **/
- (void)select{

    self.backgroundColor = [UIColor redColor];
}

/** 取消选中 **/
- (void)deSelect{

    self.backgroundColor = [UIColor yellowColor];
}

@end
